<%@page import="java.util.List"%>
<%@page import="JurisPro.modelo.FilaEspera"%>
<%@page import="JurisPro.modelo.FilaEventos"%>
	<jsp:include page="static/cabecalhoAdv.jsp"/>
	

  <tr align="center" valign="top" bgcolor="#EEEEEE">
   <td colspan="7" bgcolor="#E5E5E5"><table width="100%" border="0" cellspacing="0" cellpadding="0">
     <tr>
       <td class="arvore">In&iacute;cio</td>
     </tr>
   </table>
   <table width="776" border="0" align="center" cellpadding="0" cellspacing="0">
     <tr>
       <td width="620" height="39" bgcolor="#7C7E79" class="topicos">Confirma&ccedil;&atilde;o de Recebimento<br /></td>
     </tr>
   </table>
   <table width="80%" border="0" cellspacing="0" cellpadding="0">
       <tr>
         <td>&nbsp;</td>
       </tr>
     </table>
     <jsp:useBean id="filaespera" type="java.util.List<JurisPro.modelo.FilaEspera>" scope="request"/>
     <%if (filaespera.size()!=0){ %>
     <table width="80%" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#CCCCCC" class="tabela">
       <tr class="sub">
         <td width="133" height="30">N&ordm; do Processo</td>
         <td width="226" height="30">Cliente</td>
         <td width="153" height="30">Remetente</td>
         <td height="30" colspan="2">A&ccedil;&atilde;o</td>
       </tr>
       <% String c1 = "#E5E5E5"; String c2 = "#f3f3f3"; int c3 = 1; %>
       <%for(FilaEspera processo : filaespera){ %>
       <tr bgcolor="<% if(c3 == 1) { c3 = 2; out.print(c1); }
    	 else { c3 = 1; out.print(c2); } %>" class="texto">
         <td><%= processo.getNumProcesso() %></td>
         <td><%= processo.getNomeCliente() %></td>
         <td><%= processo.getRemetente() %></td>
         <td width="50" height="26"><a href="/JurisPro/do_it?comando=aceitar&num=<%=processo.getNumProcesso()%>&repasse=<%=processo.getIDRepasse()%>" class="link">aceitar</a></td>
         <%if (processo.getTipoRemetente() != 1){ %>
         <td width="58"><a href="/JurisPro/do_it?comando=recusar&num=<%=processo.getNumProcesso()%>&repasse=<%=processo.getIDRepasse()%>" class="link">recusar</a></td>
         <%}%>
       </tr>
       <%}%>
     </table>
     <%} %>
     <p>&nbsp;</p>
    <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#CDCDCD">
      <tr>
        <td height="39" bgcolor="#7C7E79" class="topicos">Compromissos de Hoje<br /></td>
      </tr>
    </table>
    <table width="80%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td>&nbsp;</td>
      </tr>
    </table>
    <jsp:useBean id="agendahoje" type="java.util.List<JurisPro.modelo.FilaEventos>" scope="request"/>
    <%if(agendahoje.size()!=0){ %>
    <table width="80%" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#CCCCCC" class="tabela">
      <tr class="sub">
        <td width="133" height="30">Cliente</td>
        <td width="226" height="30">Descri&ccedil;&atilde;o</td>
        <td width="153" height="30">Local</td>
        <td height="30" colspan="2">Hora</td>
      </tr>
      <% String cc1 = "#E5E5E5"; String cc2 = "#f3f3f3"; int cc3 = 1; %>
      <%for(FilaEventos agenda : agendahoje){ 
    	  int h = agenda.getData().getHours();
		   int m = agenda.getData().getMinutes();
		   String hora = ""+h;		if (h < 10) hora = "0"+h;
		   String minuto = ""+m;	if (m < 10) minuto = "0"+m;	
      %>
      <tr bgcolor="<% if(cc3 == 1) { cc3 = 2; out.print(cc1); } else { cc3 = 1; out.print(cc2); } %>" class="texto">
        <td align="center"><% if (agenda.getCliente() == "Pessoal") {
        	out.print("<img src=images/userico.gif>");
        }
        	 %><%= agenda.getCliente() %></td>
        <td><%= agenda.getDescricao() %></td>
        <td><%= agenda.getLocal() %></td>
        <td width="58" height="26" colspan="2"><%= hora%>:<%= minuto%></td>
      </tr>
      <%}%>
    </table>
    <%} %>    
    <p>&nbsp;</p></td>
  </tr>
</table>

<jsp:include page="static/rodape.jsp"/>
